from django.conf.urls import url
from rest_framework.routers import SimpleRouter

from . import views

urlpatterns = [
    url(r'channels/', views.ChannelView.as_view()),
    url(r'articles/search', views.ArticleSearchView.as_view()),
]
router = SimpleRouter()
router.register(r'article', views.ArticleViewSet)
urlpatterns += router.urls
